﻿using System;

namespace HslCommunication.Reflection
{
	/// <summary>
	/// 对应redis的一个键值信息的内容
	/// </summary>
	// Token: 0x0200010E RID: 270
	[AttributeUsage(AttributeTargets.Property, AllowMultiple = false)]
	public class HslRedisKeyAttribute : Attribute
	{
		/// <summary>
		/// 键值的名称
		/// </summary>
		// Token: 0x17000516 RID: 1302
		// (get) Token: 0x060017B4 RID: 6068 RVA: 0x0007889E File Offset: 0x00076A9E
		// (set) Token: 0x060017B5 RID: 6069 RVA: 0x000788A6 File Offset: 0x00076AA6
		public string KeyName { get; set; }

		/// <summary>
		/// 根据键名来读取写入当前的数据信息
		/// </summary>
		/// <param name="key">键名</param>
		// Token: 0x060017B6 RID: 6070 RVA: 0x000788AF File Offset: 0x00076AAF
		public HslRedisKeyAttribute(string key)
		{
			this.KeyName = key;
		}
	}
}
